package com.sumainfor.pc.epc.fallback;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.feign.GetUserInfoFeign;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Author PuaChen
 * @Create 2018-11-08 15:43
 */
@Component
public class GetUserInfoFallback implements GetUserInfoFeign {

    @Override
    public JsonResult getUserInfo(Collection<String> ids) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getAllUserIdAndName() {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getUserByRepairsId(List<String> ids) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getdeptByType(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public List<Map<String, Object>> getRepairPeople() {
        return null;
    }

    @Override
    public JsonResult getUserMap(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public List<Map<String, Object>> getDeptList(Map<String, Object> params) {
        return new ArrayList<>();
    }

    @Override
    public List<Map<String, Object>> getPostDeptList(Map<String, Object> params) {
        return new ArrayList<>();
    }
}
